package com.heima.thread.cookandfoodie.waitAndNotify;

public class Demo {
    public static void main(String[] args) {
        /**
         * 实现生产者和消费者(等待唤醒机制)
         * 实现线程轮流交替执行
         */

        Cook c = new Cook();
        Foodie f = new Foodie();

        c.start();
        f.start();

    }
}
